<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>vue之传数据</title>
    <script src="js/vuejs-2.5.16.js"></script>
</head>
<body>
<div id="app">
    <input type="text" v-model="password" STYLE="color: aqua" @click="kedown($event)">{{password}}<br/>
    <a v-bind:href="link" v-show="isShow">跳转</a>
    <button type="button" @click="on()">消失</button>
</div>


<script type="text/javascript">
    new Vue({
        el: "#app",
        data:{
            password:"",
            isShow: true,
            link: "https://www.baidu.com"
        },
        methods:{
            on(){
                this.isShow=!this.isShow
            } ,
            keydown(event){
                var key=event.keyCode;
               if(key>48 && key<57){
                   event.preventDefault();
               }
            }


        }
    });
</script>
</body>
</html>